﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.FrontCategory.Model
{
    public class FrontCategorySet
    {
        /// <summary>
        /// 类目名 
        ///</summary>
        [NullValidate("shop.category.name.null")]
        [LenValidate("shop.category.name.len", 2, 50)]
        public string CategoryName { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [LenValidate("shop.front.category.icon.len", 0, 100)]
        [FormatValidate("shop.front.category.icon.error", ValidateFormat.图片URI)]
        public string Icon { get; set; }


        public long? FileId { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
    }
}
